<%@ Page Language="C#" MasterPageFile="~/MainLayout.master" AutoEventWireup="true" CodeFile="CasesByArea.aspx.cs" Inherits="CasesByArea" %>


<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="Content">
<form id="form1" runat="server">
    <asp:Repeater ID="Repeater1" runat="server" OnItemCreated="Repeater1_ItemCreated">
        <ItemTemplate>
<br />
        <span class="label2">Area: </span><asp:Label runat="server" Cssclass="label2" style="font-weight:bold" Text="<%# Bind('Name') %>" ID="label1"></asp:Label>&nbsp;(<asp:Label runat="server" Cssclass="label2" ID="TotalSurveys" Text="<%# Bind('TotalSurveys') %>"></asp:Label> surveys in this area)<br /><br />
        <asp:GridView ID="SurveysGridView" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None">
            <Columns>
                <asp:HyperLinkField DataNavigateUrlFields="id" DataNavigateUrlFormatString="GetSurvey.aspx?surveyid={0}"
                    DataTextField="id" HeaderText="Survey ID" NavigateUrl="~/GetSurvey.aspx" />
                <asp:BoundField DataField="AddressDescription" HeaderText="Address" />
                <asp:BoundField DataField="TotalExposed" HeaderText="Total Exposed" />
                <asp:BoundField DataField="TotalDeceased" HeaderText="Total Deceased" />
                <asp:BoundField DataField="FirstName" HeaderText="First Name" />
                <asp:BoundField DataField="LastName" HeaderText="Last Name" />
            </Columns>
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <EditRowStyle BackColor="#999999" />
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        </asp:GridView>

        
<br /><br />
        </ItemTemplate>
    </asp:Repeater>
</form>
</asp:Content>